import pages from './router.config';

export default [
  { path: '/', redirect: '/index/hot' },
  {
    path: '/index',
    component: pages.index,
    children: [
      {
        path: 'hot',
        component: pages.hot,
      },
      {
        path: 'myCommodity',
        component: pages.myCommodity,
      },
    ],
  },
  {
    path: '/search',
    component: pages.search,
  },
  {
    path: '/searchDetails',
    component: pages.searchDetails,
    children: [
      {
        path: '/vertical',
        component: pages.vertical,
      },
      {
        path: '/crosswise',
        component: pages.crosswise,
      },
    ],
  },
  {
    path: '/today',
    component: pages.today,
  },
  {
    path: '/detail',
    component: pages.detail,
  },
  {
    path: '/myCommodity',
    component: pages.myCommodity,
  },
  {
    path: '/login',
    component: pages.login,
  },
  {
    path: '/registered',
    component: pages.registered,
  },
  {
    path: '/order',
    component: pages.order,
    children: [
      {
        path: 'whole',
        component: pages.whole,
      },
      {
        path: 'obligation',
        component: pages.obligation,
      },
      {
        path: 'TobeDelivered',
        component: pages.TobeDelivered,
      },
      {
        path: 'TobeReceived',
        component: pages.TobeReceived,
      },
      {
        path: 'TobeEvaluated',
        component: pages.TobeEvaluated,
      },
    ],
  },
  {
    path: '/AddressEdit',
    component: pages.AddressEdit,
  },
];
